<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
                      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<f:view contentType="text/html"
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:ui="http://java.sun.com/jsf/facelets"
        xmlns:h="http://java.sun.com/jsf/html"
        xmlns:f="http://java.sun.com/jsf/core"
        xmlns:a="http://richfaces.org/a4j"
		xmlns:rich="http://richfaces.org/rich"
        xmlns:s="http://jboss.com/products/seam/taglib">
<html>
	<head>
	    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	    <title>#{messages['project']}</title>
	    <link rel="shortcut icon" href="#{request.contextPath}/favicon.ico"/>
	    <a:loadStyle src="resource:///stylesheet/theme.xcss"/>
	    <a:loadStyle src="/stylesheet/theme.css"/>
	    <ui:insert name="head"/>
	</head>
	
	<body>
	
	  <div id="border-top" class="h_blue">
		  <div>
		    <div align="right" style="margin-right: 15px">
		        <span class="title"><h:outputText value="#{messages.tituloCabecalho}" /></span>				       
		    </div>
		  </div>
	  </div>
		
	  <div class="body">
	   
		   <div class="login"> 
		   
		    <h:messages id="messages" globalOnly="true" styleClass="message"
		        errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"
		        rendered="#{showGlobalMessages != 'false'}"/>
		
		    <h:form id="login">
		
		        <rich:panel>
		            <f:facet name="header"><h:outputText value="Acesso ao WikiNews" /></f:facet>
		
		            <p><h:outputText value="#{messages['login.message']}" /></p>
		
		            <div class="dialog">
		                <h:panelGrid columns="2" rowClasses="prop" columnClasses="name,value">
		                    <h:outputLabel for="username"><h:outputText value="#{messages['username']}" /></h:outputLabel>
		                    <h:inputText id="username"
		                              value="#{credentials.username}"/>
		                    <h:outputLabel for="password"><h:outputText value="#{messages['password']}" /></h:outputLabel>
		                    <h:inputSecret id="password"
		                                value="#{credentials.password}"/>
		                </h:panelGrid>
		            </div>
		
		        </rich:panel>
		
		        <div class="actionButtons">
		            <h:commandButton value="#{messages['login']}" action="#{identity.login}"/>
		        </div>
		        
		        <h:outputText value="Ainda não é cadastrado ? Clique " />
		        <h:commandLink action="#{perfilCtrl.novo}" value="aqui" />
		        <h:outputText value=" para cadastrar-se agora." />
		
		    </h:form>
			
			</div>
		
	  </div>
		
	  <div style="clear: both;" />
			
	  <div id="border-bottom">
		<div>
			<div></div>
		</div>
	  </div>
	
	  <div style="clear: both;" />
	
	  <div class="footer">
			<p>Projeto para a disciplina de Desenvolvimento de Software para Web.<br />
			Alunos: Leonardo Brasileiro, Bruno Garcia e Ítalo Coe.</p>
	  </div>	
		
	 </body>
</html>
</f:view>

